package com.manage.user.service;

import com.manage.user.entity.User;
import com.manage.utils.Criteria;

import java.util.List;

/**
 * @author Fitch
 */
public interface UserService {
    List<User> listUser(Criteria criteria);

    /**
     *
     * @param id
     * @return
     */
    User getById(Long id);

    /**
     *
     * @param userName
     * @return
     */
    List<User> getByUserName(String userName);

    /**
     *
     * @param user
     * @return
     */
    User saveUser(User user);
}
